package com.bvgol.examples.springbootmybatisxmlannotion.common;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class MyPage<T>{
    private int pageSize;
    private int current;
    private int totalCount;
    private T resultData;
    private int totalPages;

    public int getTotalPages() {
        return totalCount/pageSize+1;
    }
}
